package correct.day14;

import java.util.Scanner;

public class Test1 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String s = in.nextLine();
            String[] str = s.split(" ");
            String str1 = str[0];
            String str2 = str[1];
            int len1 = str1.length();
            int len2 = str2.length();
            int[] array1 = new int[26];
            int[] array2 = new int[26];
            for(int a = 0; a < len1; a++) {
                int x = str1.charAt(a) - 'A';
                array1[x]++;
            }
            for(int a = 0; a < len2; a++) {
                int x = str2.charAt(a) - 'A';
                array2[x]++;
            }
            int j = 0;
            for(j = 0; j < 26; j++) {
                if(array1[j] < array2[j]) {
                    System.out.print("No");
                    break;
                }
            }
            if (j == 26) {
                System.out.print("Yes");
            }
            System.out.println();
        }
    }
}
